home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
comm
/
net
/
AmiMUD.lha
/
AmiMUD
/
rexx
/
eatfood.amud
< prev
next >
Wrap
Text File
|
1997-03-08
|
510b
|
30 lines
/* Medievia Script to get food
* This script have to be resident, it may be launched with rx from
* a shell or from within AmiMUD.
*/
address 'AmiMUD.1'
'am_addtrigger "suddenly appear" " " REXXTRIGGER'
mytrig=TRIGGER
do forever
am_waittriggers REXXONLY
if TRIGGER=mytrig then do
/*
* say 'Line:' LINEBUFFER
* say 'There are' words(LINEBUFFER) 'words.'
*/
food=word(LINEBUFFER,words(LINEBUFFER)-2)
/*
* say 'The 3rd last word is ' food
*/
am_send '"get' food ';eat' food '"'
end
end